# -*- coding: utf-8 -*-
# @description: 调用c扩展
# @File  : add.py
# @Time  :2022-06-21 14:45:22
# @Author:selfeasy
# @Email :selfeasy@qq.com

from ctypes import *

#加载动态库
adder=CDLL('./adder.so')

res_int=adder.add_int(4,5)
print('sum of 4 and 5=',res_int)